/*
 * JDialogSobre.java
 *  Copyright (C) 2008  Tiago Silva Loureiro
 *  This File is part of Bier Manager.
 *  Bier Manager is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 * Criado em 2 de Outubro de 2008, 18:14
 */

package biermanager.editorDeTimes.interfaceGrafica;

import java.awt.Dimension;
import java.awt.Toolkit;

/**
 *
 * @author  tiagoloureiro
 */
public class JDialogSobre extends javax.swing.JDialog {

    /** Creates new form JDialogSobre
     * @param parent
     * @param modal 
     */
    public JDialogSobre(java.awt.Frame parent, boolean modal) {
        super(parent, modal);
        initComponents();
        Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();  
        setLocation( (int)( ( screenSize.getWidth() - this.getWidth() ) / 2 ), (int)( (screenSize.getHeight() - this.getHeight() - 40) / 2 ) );
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jPanel1 = new javax.swing.JPanel();
        jlblEditorTema = new javax.swing.JLabel();
        jScrollPane1 = new javax.swing.JScrollPane();
        jtareaLicensa = new javax.swing.JTextArea();
        jlblGpl3 = new javax.swing.JLabel();
        jlblEditor = new javax.swing.JLabel();
        jlblDesenvolvedor = new javax.swing.JLabel();
        jlblArte = new javax.swing.JLabel();
        jtbFechar = new javax.swing.JButton();

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
        setTitle("Sobre o Editor de Times do Bier Manager");
        setModal(true);
        setResizable(false);

        jlblEditorTema.setIcon(new javax.swing.ImageIcon(getClass().getResource("/biermanager/editorDeTimes/imagens/editor256.gif"))); // NOI18N
        jlblEditorTema.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));

        jScrollPane1.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);

        jtareaLicensa.setColumns(20);
        jtareaLicensa.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        jtareaLicensa.setRows(5);
        jtareaLicensa.setText("Editor de Times is part of Bier Manager.\nBier Manager is free software: you can redistribute it and/or modify\nit under the terms of the GNU General Public License as published by\nthe Free Software Foundation, either version 3 of the License, or\n(at your option) any later version.\nThis program is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\nSee the GNU General Public License for more details.\nYou should have received a copy of the GNU General Public License\nalong with this program.  If not, see <http://www.gnu.org/licenses/>.");
        jtareaLicensa.setDisabledTextColor(new java.awt.Color(0, 0, 0));
        jtareaLicensa.setEnabled(false);
        jScrollPane1.setViewportView(jtareaLicensa);

        jlblGpl3.setIcon(new javax.swing.ImageIcon(getClass().getResource("/biermanager/editorDeTimes/imagens/gplv3.png"))); // NOI18N

        jlblEditor.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
        jlblEditor.setText("Editor de Times - Versão de Testes(!!!)");

        jlblDesenvolvedor.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
        jlblDesenvolvedor.setText("Design e Desenvolvimtento: Tiago Loureiro  - tiagosl@dcc.ufmg.br");

        jlblArte.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
        jlblArte.setText("Imagens: Wellington Junior - wjunior@dcc.ufmg.br");

        jtbFechar.setText("Fechar");
        jtbFechar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jtbFecharActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jlblEditorTema)
                        .addGap(18, 18, 18)
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 541, Short.MAX_VALUE)
                            .addGroup(jPanel1Layout.createSequentialGroup()
                                .addComponent(jlblGpl3)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jlblDesenvolvedor)
                                    .addComponent(jlblArte)
                                    .addComponent(jlblEditor, javax.swing.GroupLayout.PREFERRED_SIZE, 237, javax.swing.GroupLayout.PREFERRED_SIZE)))))
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addGap(329, 329, 329)
                        .addComponent(jtbFechar, javax.swing.GroupLayout.PREFERRED_SIZE, 105, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap())
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jlblEditorTema)
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 205, Short.MAX_VALUE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addGroup(jPanel1Layout.createSequentialGroup()
                                .addComponent(jlblEditor)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jlblDesenvolvedor)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jlblArte))
                            .addComponent(jlblGpl3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                        .addGap(37, 37, 37)
                        .addComponent(jtbFechar, javax.swing.GroupLayout.PREFERRED_SIZE, 33, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap())
        );

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

private void jtbFecharActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jtbFecharActionPerformed
    this.dispose();
}//GEN-LAST:event_jtbFecharActionPerformed


    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JPanel jPanel1;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JLabel jlblArte;
    private javax.swing.JLabel jlblDesenvolvedor;
    private javax.swing.JLabel jlblEditor;
    private javax.swing.JLabel jlblEditorTema;
    private javax.swing.JLabel jlblGpl3;
    private javax.swing.JTextArea jtareaLicensa;
    private javax.swing.JButton jtbFechar;
    // End of variables declaration//GEN-END:variables

}
